const express = require("express");

const router = express.Router();

router.get("/get", (req, res) => {
  console.log(req.query);
  let q = {
    code: 200,
    msg: "成功",
    data: req.query,
  };
  res.send(q);
});

router.post("/post", (req, res) => {
  console.log(req.body);
  let q = {
    code: 200,
    msg: "成功",
    data: req.body,
  };
  res.send(q);
})

module.exports = router;
